@import '@terminus/nusi-slim/es/style/index.less';

.nodePanel {
  width: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: @middle-7;
}

.header {
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
  font-weight: 500;
  font-size: 14px;
  color: @middle-1;
  border-bottom: 1px solid @middle-6;
}

.content {
  overflow: auto;
}

.nodeList {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.nodeItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: grab;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;

  &:hover {
    background-color: #f5f5f5;
  }

  &:active {
    cursor: grabbing;
  }
}

.nodePreview {
  user-select: none;
  pointer-events: none;
}

.nodeLabel {
  font-size: 12px;
  color: #666;
  text-align: center;
}
